﻿module Sustainalytics.Portfolio {

    import Common = Sustainalytics.Common;

    export class PortfolioSearchController {
        private $scope: ng.IScope;

        // Ctor.
        public constructor($scope: ng.IScope) {
            this.$scope = $scope;

            // associate scope with current instance
            this.$scope['portfolioSearch'] = this;
        }
    }

    var companySearchModule = angular.module('Sustainalytics.Portfolio');

    companySearchModule.controller('PortfolioSearchController', $scope => {

        var ctrl = new Sustainalytics.Portfolio.PortfolioSearchController($scope);
    });
}